using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Jst.Domain
{
    [SugarTable("RoleModulePermission", TableDescription = "按钮跟权限关联表")]
    public partial class RoleModulePermission
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [SugarColumn(ColumnDescription = "Id", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        /// <summary>
        /// 获取或设置是否禁用，逻辑上的删除，非物理删除
        /// </summary>
        [Display(Name = "获取或设置是否禁用，逻辑上的删除，非物理删除")]
        [SugarColumn(ColumnDescription = "获取或设置是否禁用，逻辑上的删除，非物理删除", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建ID
        /// </summary>
        [Display(Name = "创建ID")]
        [SugarColumn(ColumnDescription = "创建ID", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long CreateId { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [Display(Name = "创建者")]
        [SugarColumn(ColumnDescription = "创建者", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改ID
        /// </summary>
        [Display(Name = "修改ID")]
        [SugarColumn(ColumnDescription = "修改ID", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long ModifyId { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        [Display(Name = "修改者")]
        [SugarColumn(ColumnDescription = "修改者", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string ModifyBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime ModifyTime { get; set; }

        /// <summary>
        /// RoleId
        /// </summary>
        [Display(Name = "RoleId")]
        [SugarColumn(ColumnDescription = "RoleId", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long RoleId { get; set; }

        /// <summary>
        /// ModuleId
        /// </summary>
        [Display(Name = "ModuleId")]
        [SugarColumn(ColumnDescription = "ModuleId", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long ModuleId { get; set; }

        /// <summary>
        /// PermissionId
        /// </summary>
        [Display(Name = "PermissionId")]
        [SugarColumn(ColumnDescription = "PermissionId", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long PermissionId { get; set; }

    }
}
